package com.alinesno.cloud.base.notice.service.impl;

import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.scheduling.annotation.Async;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;

import com.alinesno.cloud.base.notice.entity.SmsTaskEntity;
import com.alinesno.cloud.base.notice.service.ISmsTaskService;
import com.alinesno.cloud.common.core.service.impl.IBaseServiceImpl;

/**
 * <p>  服务实现类 </p>
 *
 * @author WeiXiaoJin
 * @since 2018-12-02 16:08:00
 */
@Service
public class SmsTaskServiceImpl extends IBaseServiceImpl< SmsTaskEntity, String> implements ISmsTaskService {

	//日志记录
	@SuppressWarnings("unused")
	private static final Logger log = LoggerFactory.getLogger(SmsTaskServiceImpl.class);
	
	@SuppressWarnings("unused")
	@Scheduled(cron="0/5 * *  * * ? ")
	@Async
	@Override
	public void exceptionJob() {
	
		List<SmsTaskEntity> tasks = this.findAll() ; 
		
	}

	@Override
	public void clearDoingJob() {
		// TODO Auto-generated method stub
		
	}

}
